<template>
  <view class="vdate" :class="{ active: isActive, brown: date!=''}">
    {{ date }}
  </view>
</template>

<script setup>
  const props = defineProps({
    date: { type: String, default: "" },
    isActive: { type: Boolean, default: false }
  })
</script>

<style>
  .vdate {
    font-size: 14px;
  }

  .active {
    background-color: brown;
    color: white;
  }

  .brown {
	    display: flex;
	    justify-content: center;
	    align-items: center;
	margin-top: 10px;
	margin-left: 5%;
		margin-right: 5%;
    border: 1px solid #b55e46;
    width: 90%;
    height: 90%;
	font-weight: bold;
  }
</style>